package controller;

import jakarta.servlet.http.HttpServletRequest;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.support.RequestContext;

import java.util.Map;

@Controller
public class I18nController {

    @RequestMapping("/i18n")
    public String f(HttpServletRequest request, Map map){

        RequestContext requestContext=new RequestContext(request);

        String d=requestContext.getMessage("d");

        map.put("message",d);

        return "i18n";
    }
}
